const SystemRouter = [{
  path: '/system',
  component: () => import('@/layout/index.vue'),
  name: 'system',
  redirect: '/system/user',
  meta: {
    title: '系统管理',
    roles: ['super']
  },
  children: [
    {
      path: 'user',
      component: () => import("@/views/system/user.vue"),
      name: 'user',
      meta: {
        title: '用户管理'
      }
    },
    {
      path: 'department',
      component: () => import("@/views/system/department.vue"),
      name: 'department',
      meta: {
        title: '部门管理'
      }
    },
    {
      path: 'menu',
      component: () => import("@/views/system/menu.vue"),
      name: 'menu',
      meta: {
        title: '菜单管理'
      }
    },
    {
      path: 'role',
      component: () => import("@/views/system/role.vue"),
      name: 'role',
      meta: {
        title: '角色管理'
      }
    },
  ]
}]
export default SystemRouter;